<?php

require_once 'Global.php';

function makebody($email, $name, $address, $zipcode){
  $metin = "<p>".PETITION."</p><p align=\"right\">".$address."<br>".$zipcode."<br>".$name."</p>";
  return $metin;
}

function gonder($email, $name, $address, $zipcode){
   $body = makebody($email, $name, $address, $zipcode);  
   $to = PETITION_RECIEVER;
   $subject = PETITION_HEADER;
   
   $headers = "From: $email"; 
   
   $send = mail($to, $subject, $body, $headers); 
   if($send) return true;
   else return false;
}


?>
